﻿@model Project5.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
}

<div id=logon>
<p>
    Please enter your user name and password or @Html.ActionLink("register", "Register") if you don't already have an account.</br>
    You may @Html.ActionLink("reset your password", "RecoveryRequest") if you cannot remember it.
</p>

@Html.ValidationSummary(true)

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken();
    <div class="well">
        <fieldset>
            <legend>Account Information</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div>
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </div>

            <p>
                <input class="btn btn-primary" type="submit" value="Login" />
            </p>
        </fieldset>
    </div>
}
</div>